package paywithdrawlogic

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/withdraw"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"
	"github.com/zeromicro/go-zero/core/logx"
)

type WithdrawListPageLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewWithdrawListPageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WithdrawListPageLogic {
	return &WithdrawListPageLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// -------------------b端财务管理----------------------------------------------------------
func (l *WithdrawListPageLogic) WithdrawListPage(in *rpc.FindWithDrawReq) (ret *rpc.FindWithDrawRes, err error) {
	m := withdraw.NewWithdrawModel(l.ctx, l.svcCtx)
	ret, err = m.WithdrawListPage(in)
	return
}
